package com.kx.mybatis.pojo;



import java.util.List;

public class Emp {

  private long id;
  private String name;
  private String pos;
  private String gender;
  private long depid;
  private List<Department> departments;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getPos() {
    return pos;
  }

  public void setPos(String pos) {
    this.pos = pos;
  }


  public String getGender() {
    return gender;
  }

  public void setGender(String gender) {
    this.gender = gender;
  }


  public long getDepid() {
    return depid;
  }

  public void setDepid(long depid) {
    this.depid = depid;
  }

  public List<Department> getDepartments() {
    return departments;
  }

  public void setDepartments(List<Department> departments) {
    this.departments = departments;
  }

  @Override
  public String toString() {
    return "Emp{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", pos='" + pos + '\'' +
            ", gender='" + gender + '\'' +
            ", depid=" + depid +
            '}';
  }
}
